﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyHome.Server.PluginManagement;
using System.Threading.Tasks;
using System.Diagnostics;

namespace MyHome.ServerPluginTests
{
    [TestClass]
    public class PluginManagementTest
    {
        [TestInitialize]
        public void Initialize()
        {
            Trace.Listeners.Add(new ConsoleTraceListener());
        }

        [TestMethod]
        public async Task TestPluginHost()
        {
            var host = new PluginHost();
            await host.LoadAsync();
            Assert.IsNotNull(host.PluginTypes);
            Assert.IsNotNull(host.Plugins);
            Assert.IsNotNull(host.PluginConnections);
        }
    }
}
